/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __FINDER_H__
#define __FINDER_H__

#include "String.hpp"

namespace liba
{
namespace filesystem
{

class Finder
{
public:
	// return false to stop processing
	virtual bool on_file( const filesystem::String & path )
	{
		return true;
	}
	// return false to stop processing
	virtual bool on_folder( const filesystem::String & path )
	{
		return true;
	}
	virtual ~Finder()
	{}
};

#if defined(IPHONE_VERSION) || defined(MAC_VERSION) || defined(ANDROID_NDK) || defined(SAMSUNG_VERSION) || defined(MARMALADE)
inline bool find(Finder * finder, const filesystem::String & base_path, const std::string & mask = "*")
{
	return false;
}
#else
bool find(Finder * finder, const filesystem::String & base_path, const std::string & mask = "*");
#endif

} // namespace converter
} // namespace liba
using namespace liba;

#endif //__FINDER_H__
